package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class DraftBase{
	boolean[] modified=new boolean[7];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public DraftBase(){}
	public DraftBase(java.lang.Long draftId,java.lang.Long userId,java.lang.String title,java.lang.String content,java.util.Date createTime,java.util.Date updateTime,java.lang.Boolean deleted){
		setDraftId(draftId);
		setUserId(userId);
		setTitle(title);
		setContent(content);
		setCreateTime(createTime);
		setUpdateTime(updateTime);
		setDeleted(deleted);
	}
	public void setDraftId(java.lang.Long draftId){
		if(draftId!=null) {
			set("draftId",draftId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getDraftId(){
		return (java.lang.Long)get("draftId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setTitle(java.lang.String title){
		if(title!=null) {
			set("title",title);
			this.modified[2] =true;
		}
	}
	public java.lang.String getTitle(){
		return (java.lang.String)get("title");
	}
	public void setContent(java.lang.String content){
		if(content!=null) {
			set("content",content);
			this.modified[3] =true;
		}
	}
	public java.lang.String getContent(){
		return (java.lang.String)get("content");
	}
	public void setCreateTime(java.util.Date createTime){
		if(createTime!=null) {
			set("createTime",createTime);
			this.modified[4] =true;
		}
	}
	public java.util.Date getCreateTime(){
		return (java.util.Date)get("createTime");
	}
	public void setUpdateTime(java.util.Date updateTime){
		if(updateTime!=null) {
			set("updateTime",updateTime);
			this.modified[5] =true;
		}
	}
	public java.util.Date getUpdateTime(){
		return (java.util.Date)get("updateTime");
	}
	public void setDeleted(java.lang.Boolean deleted){
		if(deleted!=null) {
			set("deleted",deleted);
			this.modified[6] =true;
		}
	}
	public java.lang.Boolean getDeleted(){
		return (java.lang.Boolean)get("deleted");
	}
}
